package com.zlsy.springbootdemo.strategy.demo;

/**
 * @author zhouliang
 * @date 2021/1/19 15:25
 */
public class Context {
  private Strategy strategy;

  public Context(Strategy strategy) {
    this.strategy = strategy;
  }

  public int executeStrategy(int a, int b) {
    return strategy.doOperation(a, b);
  }
}
